package com.xyz.tasks.schedules;

import com.xyz.tasks.bf.LotteryGenBf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class GenLotteryPeriodsTask {

    @Autowired
    private LotteryGenBf lotteryBf;

    // 生成抽奖期数
    //@Scheduled(cron = "30 1 0 * * ?")
    public void genLotteryPeriod(){
        lotteryBf.genLotteries();
    }



}
